package com.AAA.entity.fpa;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import javax.persistence.*;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
@Table(name = "t_fpa_record")
@Data
@NoArgsConstructor
@AllArgsConstructor
//@ApiModel(value = "TFpaRecord)", description = "")
public class Ttongji implements Serializable {
    private static final long serialVersionUID = -85699767480319322L;
    @Id
    @GeneratedValue(generator = "JDBC",strategy = GenerationType.IDENTITY)
    @Column(name = "id")
    private Integer id;
    @Column(name = "username")
    //@ApiModelProperty(value = "名字")
    private String username;

    @Column(name = "tel")
    //@ApiModelProperty(value = "电话号码")
    private String tel;

    @Column(name = "yqcode")
    //@ApiModelProperty(value = "邀请码")
    private String yqcode;

    @Column(name = "createtime")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    //@ApiModelProperty(value = "开始时间")
    private Date createtime;

    // 选项答案
    @Transient
    private TFpa tFpa = new TFpa();

    private Long count;

    private String color;

    private List<TjMessage> msgs= new ArrayList<>();
}

